package com.ke.forum.mbg.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ke.forum.mbg.entity.User;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class ChatSessionDto {

    private Long id;

    private String fromUuid;

    private String toUuid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastTime;

    private String lastMessage;

    /**
     * 待检查消息数
     */
    private Integer needCheck;

    private String sessionId;

    private User fromUser;
}
